package cn.opopopo.designpatterns.demos.web.InterfaceIsolationPrinciple;

// 实现类需要实现所有方法
public class PettyGirl implements IPettyGirl {
    private String name;

    public PettyGirl(String name) {
        this.name = name;
    }

    @Override
    public void goodLooking() {
        System.out.println(name + " 外貌很漂亮");
    }

    @Override
    public void niceFigure() {
        System.out.println(name + " 身材很好");
    }

    @Override
    public void greatTemperament() {
        System.out.println(name + " 气质出众");
    }
}